package com.scs.application.core.annotation;

import com.scs.application.core.configuration.ExceptionHandleConfiguration;
import com.scs.application.core.configuration.MsgProviderConfiguration;
import com.scs.application.core.configuration.WebMvcConfiguration;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Description: 默认核心配置选择器，导入相关的配置类
 */
public class DefaultCoreImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{
                ExceptionHandleConfiguration.class.getName(),
                WebMvcConfiguration.class.getName(),
                MsgProviderConfiguration.class.getName(),
                JacksonAutoConfiguration.class.getName()
        };
    }
}
